package com.xwj.service.Interface;

import com.github.pagehelper.PageInfo;
import com.xwj.dto.RegisterUserDto;
import com.xwj.entity.PassWordEntity;
import com.xwj.entity.RaRegisterUser;

import java.util.List;

public interface RegisterUserService {

    PageInfo<RaRegisterUser> findAllUser(int pageIndex, int pageSize);

    PageInfo<RaRegisterUser> findUserByProperty(int pageIndex, int pageSize, RegisterUserDto registerUserDto);

    RaRegisterUser findUserByMail(String mail);

    RaRegisterUser findUserByPhone(String phone);

    RaRegisterUser findUserById(String id);

    PassWordEntity getUserPassWord(String id);

    int updatePassword(PassWordEntity passWordEntity);

    int addOneRegisterUser(RaRegisterUser raRegisterUser);

    int updateOtherProperty(RaRegisterUser raRegisterUser);

    int deleteByIds(List<String> list);
}
